package com.apollographql.apollo.api;


import java.util.*;

import com.kt.Deprecated;
import com.kt.Metadata;
import com.kt.ReplaceWith;
import com.kt.collections.CollectionsKt;
import com.kt.collections.MapsKt;
import com.kt.jvm.JvmStatic;
import com.kt.jvm.internal.DefaultConstructorMarker;
import com.kt.jvm.internal.Intrinsics;
import ohos.aafwk.content.Operation;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010$\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0016\u0018\u0000 #2\u00020\u0001:\u0006\"#$%&'BK\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\u0014\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u00010\b\u0012\u0006\u0010\t\u001a\u00020\n\u0012\f\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\r0\f¢\u0006\u0002\u0010\u000eJ\u0016\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u00010\bH\u0007J\u000e\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\r0\fH\u0007J\u0013\u0010\u001a\u001a\u00020\n2\b\u0010\u001b\u001a\u0004\u0018\u00010\u0001H\u0002J\b\u0010\u0006\u001a\u00020\u0005H\u0007J\b\u0010\u001c\u001a\u00020\u001dH\u0016J\b\u0010\t\u001a\u00020\nH\u0007J\u0018\u0010\u001e\u001a\u0004\u0018\u00010\u00012\u0006\u0010\u001f\u001a\u00020\u00052\u0006\u0010 \u001a\u00020!J\b\u0010\u0004\u001a\u00020\u0005H\u0007J\b\u0010\u0002\u001a\u00020\u0003H\u0007R\u001f\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0017\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\r0\f¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0011\u0010\u0006\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\t\u001a\u00020\n¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0014R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0019¨\u0006("}, d2 = {"Lcom/apollographql/apollo/api/ResponseField;", "", "type", "Lcom/apollographql/apollo/api/ResponseField$Type;", "responseName", "", "fieldName", "arguments", "", "optional", "", "conditions", "", "Lcom/apollographql/apollo/api/ResponseField$Condition;", "(Lcom/apollographql/apollo/api/ResponseField$Type;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ZLjava/util/List;)V", "getArguments", "()Ljava/util/Map;", "getConditions", "()Ljava/util/List;", "getFieldName", "()Ljava/lang/String;", "getOptional", "()Z", "getResponseName", "getType", "()Lcom/apollographql/apollo/api/ResponseField$Type;", "equals", "other", "hashCode", "", "resolveArgument", "name", "ApolloOperationMessageSerializer.JSON_KEY_VARIABLES", "Lcom/apollographql/apollo/api/Operation$Variables;", "BooleanCondition", "Companion", "Condition", "CustomTypeField", "Type", "TypeNameCondition", "apollo-api"}, k = 1, mv = {1, 4, 0})
/* compiled from: ResponseField.kt */
public class ResponseField {
    public static final Companion companion = new Companion(null);
    private static final String VARIABLE_IDENTIFIER_KEY = "kind";
    private static final String VARIABLE_IDENTIFIER_VALUE = "Variable";
    public static final String VARIABLE_NAME_KEY = "variableName";
    private final Map<String, Object> arguments;
    private final List<Condition> conditions;
    private final String fieldName;
    private final boolean optional;
    private final String responseName;
    private final Type type;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\r\b\u0001\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\r¨\u0006\u000e"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$Type;", "", "(Ljava/lang/String;I)V", "STRING", "INT", "LONG", "DOUBLE", "BOOLEAN", "ENUM", "OBJECT", "LIST", "CUSTOM", "FRAGMENT", "FRAGMENTS", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public enum Type {
        STRING,
        INT,
        LONG,
        DOUBLE,
        BOOLEAN,
        ENUM,
        OBJECT,
        LIST,
        CUSTOM,
        FRAGMENT,
        FRAGMENTS
    }

    @JvmStatic
    public static final ResponseField forBoolean(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forBoolean(str, str2, map, z, list);
    }

    @JvmStatic
    public static final CustomTypeField forCustomType(String str, String str2, Map<String, ? extends Object> map, boolean z, ScalarType scalarType, List<? extends Condition> list) {
        return companion.forCustomType(str, str2, map, z, scalarType, list);
    }

    @JvmStatic
    public static final ResponseField forDouble(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forDouble(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forEnum(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forEnum(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forFragment(String str, String str2, List<? extends Condition> list) {
        return companion.forFragment(str, str2, list);
    }

    @JvmStatic
    public static final ResponseField forInt(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forInt(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forList(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forList(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forLong(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forLong(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forObject(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forObject(str, str2, map, z, list);
    }

    @JvmStatic
    public static final ResponseField forString(String str, String str2, Map<String, ? extends Object> map, boolean z, List<? extends Condition> list) {
        return companion.forString(str, str2, map, z, list);
    }

    @JvmStatic
    public static final boolean isArgumentValueVariableType(Map<String, ? extends Object> map) {
        return companion.isArgumentValueVariableType(map);
    }

    /* JADX DEBUG: Multi-variable search result rejected for r7v0, resolved type: java.util.List<? extends com.apollographql.apollo.api.ResponseField$Condition> */
    /* JADX WARN: Multi-variable type inference failed */
    public ResponseField(Type type2, String responseName2, String fieldName2, Map<String, ? extends Object> map, boolean optional2, List<? extends Condition> list) {
        Intrinsics.checkParameterIsNotNull(type2, "type");
        Intrinsics.checkParameterIsNotNull(responseName2, "responseName");
        Intrinsics.checkParameterIsNotNull(fieldName2, "fieldName");
        Intrinsics.checkParameterIsNotNull(map, "arguments");
        Intrinsics.checkParameterIsNotNull(list, "conditions");
        this.type = type2;
        this.responseName = responseName2;
        this.fieldName = fieldName2;
        this.arguments = (Map<String, Object>) map;
        this.optional = optional2;
        this.conditions = (List<Condition>) list;
    }

    public final Type getType() {
        return this.type;
    }

    public final String getResponseName() {
        return this.responseName;
    }

    public final String getFieldName() {
        return this.fieldName;
    }

    public final Map<String, Object> getArguments() {
        return this.arguments;
    }

    public final boolean getOptional() {
        return this.optional;
    }

    public final List<Condition> getConditions() {
        return this.conditions;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "type", imports = {}))
    public final Type type() {
        return this.type;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "responseName", imports = {}))
    public final String responseName() {
        return this.responseName;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "fieldName", imports = {}))
    public final String fieldName() {
        return this.fieldName;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "arguments", imports = {}))
    public final Map<String, Object> arguments() {
        return this.arguments;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "optional", imports = {}))
    public final boolean optional() {
        return this.optional;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "conditions", imports = {}))
    public final List<Condition> conditions() {
        return this.conditions;
    }

    public final Object resolveArgument(String name, Operation variables) {
        Intrinsics.checkParameterIsNotNull(name, "name");
        Intrinsics.checkParameterIsNotNull(variables, "variables");
        Set<String> variableValues = variables.getEntities();
        Object argumentValue = this.arguments.get(name);
        if (!(argumentValue instanceof Map)) {
            return argumentValue;
        }
        Map argumentValueMap = (Map) argumentValue;
        Map<String, String> map = new HashMap<>();
        Iterator interator = variableValues.iterator();
        while (interator.hasNext()) {
            map.put(UUID.randomUUID().toString(), (String) interator.next());
        }

        return map.get(String.valueOf(argumentValueMap.get(VARIABLE_NAME_KEY)));
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if ((other instanceof ResponseField) && this.type == ((ResponseField) other).type && !(!Intrinsics.areEqual(this.responseName, ((ResponseField) other).responseName)) && !(!Intrinsics.areEqual(this.fieldName, ((ResponseField) other).fieldName)) && !(!Intrinsics.areEqual(this.arguments, ((ResponseField) other).arguments)) && this.optional == ((ResponseField) other).optional && !(!Intrinsics.areEqual(this.conditions, ((ResponseField) other).conditions))) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return (((((((((this.type.hashCode() * 31) + this.responseName.hashCode()) * 31) + this.fieldName.hashCode()) * 31) + this.arguments.hashCode()) * 31) + this.conditions.hashCode()));
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001BO\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0016\u0010\u0005\u001a\u0012\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u0007\u0018\u00010\u0006\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u000e\u0010\n\u001a\n\u0012\u0004\u0012\u00020\f\u0018\u00010\u000b\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fJ\u0013\u0010\u0012\u001a\u00020\t2\b\u0010\u0013\u001a\u0004\u0018\u00010\u0007H\u0002J\b\u0010\u0014\u001a\u00020\u0015H\u0016J\b\u0010\r\u001a\u00020\u000eH\u0007R\u0011\u0010\r\u001a\u00020\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0016"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$CustomTypeField;", "Lcom/apollographql/apollo/api/ResponseField;", "responseName", "", "fieldName", "arguments", "", "", "optional", "", "conditions", "", "Lcom/apollographql/apollo/api/ResponseField$Condition;", "scalarType", "Lcom/apollographql/apollo/api/ScalarType;", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;ZLjava/util/List;Lcom/apollographql/apollo/api/ScalarType;)V", "getScalarType", "()Lcom/apollographql/apollo/api/ScalarType;", "equals", "other", "hashCode", "", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public final class CustomTypeField extends ResponseField {
        private final ScalarType scalarType;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public CustomTypeField(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list, ScalarType scalarType2) {
            super(Type.CUSTOM, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            Intrinsics.checkParameterIsNotNull(scalarType2, "scalarType");
            this.scalarType = scalarType2;
        }

        public final ScalarType getScalarType() {
            return this.scalarType;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "scalarType", imports = {}))
        public final ScalarType scalarType() {
            return this.scalarType;
        }

        @Override // com.apollographql.apollo.api.ResponseField
        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if ((other instanceof CustomTypeField) && ResponseField.super.equals(other) && !(!Intrinsics.areEqual(this.scalarType, ((CustomTypeField) other).scalarType))) {
                return true;
            }
            return false;
        }

        @Override // com.apollographql.apollo.api.ResponseField
        public int hashCode() {
            return (ResponseField.super.hashCode() * 31) + this.scalarType.hashCode();
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0016\u0018\u0000 \u00032\u00020\u0001:\u0001\u0003B\u0007\b\u0000¢\u0006\u0002\u0010\u0002¨\u0006\u0004"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$Condition;", "", "()V", "Companion", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public static class Condition {
        public static final Companion Companion = new Companion(null);

        @JvmStatic
        public static final BooleanCondition booleanCondition(String str, boolean z) {
            return Companion.booleanCondition(str, z);
        }

        @JvmStatic
        public static final TypeNameCondition typeCondition(String[] strArr) {
            return Companion.typeCondition(strArr);
        }

        @Metadata(bv = {1, 0, 3}, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0007J\u001b\u0010\t\u001a\u00020\n2\f\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\u00060\fH\u0007¢\u0006\u0002\u0010\r¨\u0006\u000e"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$Condition$Companion;", "", "()V", "booleanCondition", "Lcom/apollographql/apollo/api/ResponseField$BooleanCondition;", ResponseField.VARIABLE_NAME_KEY, "", "inverted", "", "typeCondition", "Lcom/apollographql/apollo/api/ResponseField$TypeNameCondition;", "types", "", "([Ljava/lang/String;)Lcom/apollographql/apollo/api/ResponseField$TypeNameCondition;", "apollo-api"}, k = 1, mv = {1, 4, 0})
        /* compiled from: ResponseField.kt */
        public static final class Companion {
            private Companion() {
            }

            public /* synthetic */ Companion(DefaultConstructorMarker $constructor_marker) {
                this();
            }

            @JvmStatic
            public final TypeNameCondition typeCondition(String[] types) {
                Intrinsics.checkParameterIsNotNull(types, "types");
                return new TypeNameCondition(CollectionsKt.listOf((Arrays.copyOf(types, types.length))));
            }

            @JvmStatic
            public final BooleanCondition booleanCondition(String variableName, boolean inverted) {
                Intrinsics.checkParameterIsNotNull(variableName, ResponseField.VARIABLE_NAME_KEY);
                return new BooleanCondition(variableName, inverted);
            }
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001B\u0015\b\u0000\u0012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\u0002\u0010\u0005J\u0013\u0010\b\u001a\u00020\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000bH\u0002J\b\u0010\f\u001a\u00020\rH\u0016J\u000e\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003H\u0007R\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u000e"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$TypeNameCondition;", "Lcom/apollographql/apollo/api/ResponseField$Condition;", "typeNames", "", "", "(Ljava/util/List;)V", "getTypeNames", "()Ljava/util/List;", "equals", "", "other", "", "hashCode", "", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public static final class TypeNameCondition extends Condition {
        private final List<String> typeNames;

        public TypeNameCondition(List<String> list) {
            Intrinsics.checkParameterIsNotNull(list, "typeNames");
            this.typeNames = list;
        }

        public final List<String> getTypeNames() {
            return this.typeNames;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "typeNames", imports = {}))
        public final List<String> typeNames() {
            return this.typeNames;
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if ((other instanceof TypeNameCondition) && !(!Intrinsics.areEqual(this.typeNames, ((TypeNameCondition) other).typeNames))) {
                return true;
            }
            return false;
        }

        public int hashCode() {
            return this.typeNames.hashCode();
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\u0018\u00002\u00020\u0001B\u0017\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0013\u0010\u000e\u001a\u00020\u00052\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0002J\b\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0007\u001a\u00020\u0005H\u0007J\b\u0010\u0002\u001a\u00020\u0003H\u0007R\u001c\u0010\u0007\u001a\u00020\u00058\u0006X\u0004¢\u0006\u000e\n\u0000\u0012\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u000bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006\u0013"}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$BooleanCondition;", "Lcom/apollographql/apollo/api/ResponseField$Condition;", ResponseField.VARIABLE_NAME_KEY, "", "isInverted", "", "(Ljava/lang/String;Z)V", "inverted", "getInverted$annotations", "()V", "getInverted", "()Z", "getVariableName", "()Ljava/lang/String;", "equals", "other", "", "hashCode", "", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public static final class BooleanCondition extends Condition {
        private final boolean inverted;
        private final boolean isInverted;
        private final String variableName;

        @Deprecated(message = "Use isInverted instead", replaceWith = @ReplaceWith(expression = "isInverted", imports = {}))
        public static /* synthetic */ void getInverted$annotations() {
        }

        public BooleanCondition(String variableName2, boolean isInverted2) {
            Intrinsics.checkParameterIsNotNull(variableName2, ResponseField.VARIABLE_NAME_KEY);
            this.variableName = variableName2;
            this.isInverted = isInverted2;
            this.inverted = isInverted2;
        }

        public final String getVariableName() {
            return this.variableName;
        }

        public final boolean isInverted() {
            return this.isInverted;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "variableName", imports = {}))
        public final String variableName() {
            return this.variableName;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "isInverted", imports = {}))
        public final boolean inverted() {
            return this.isInverted;
        }

        public final boolean getInverted() {
            return this.inverted;
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if ((other instanceof BooleanCondition) && !(!Intrinsics.areEqual(this.variableName, ((BooleanCondition) other).variableName)) && this.isInverted == ((BooleanCondition) other).isInverted) {
                return true;
            }
            return false;
        }

        public int hashCode() {
            return (this.variableName.hashCode() * 31);
        }
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010$\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002JH\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JP\u0010\u0012\u001a\u00020\u00132\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0014\u001a\u00020\u00152\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u0016\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u0017\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007J(\u0010\u0018\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u0019\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u001a\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u001b\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u001c\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007JH\u0010\u001d\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u00042\u0016\u0010\u000b\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u0001\u0018\u00010\f2\u0006\u0010\r\u001a\u00020\u000e2\u000e\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0010H\u0007J\u001e\u0010\u001e\u001a\u00020\u000e2\u0014\u0010\u001f\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00010\fH\u0007R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000¨\u0006 "}, d2 = {"Lcom/apollographql/apollo/api/ResponseField$Companion;", "", "()V", "VARIABLE_IDENTIFIER_KEY", "", "VARIABLE_IDENTIFIER_VALUE", "VARIABLE_NAME_KEY", "forBoolean", "Lcom/apollographql/apollo/api/ResponseField;", "responseName", "fieldName", "arguments", "", "optional", "", "conditions", "", "Lcom/apollographql/apollo/api/ResponseField$Condition;", "forCustomType", "Lcom/apollographql/apollo/api/ResponseField$CustomTypeField;", "scalarType", "Lcom/apollographql/apollo/api/ScalarType;", "forDouble", "forEnum", "forFragment", "forInt", "forList", "forLong", "forObject", "forString", "isArgumentValueVariableType", "objectMap", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: ResponseField.kt */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker $constructor_marker) {
            this();
        }

        @JvmStatic
        public final ResponseField forString(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.STRING, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forInt(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.INT, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forLong(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.LONG, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forDouble(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.DOUBLE, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forBoolean(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.BOOLEAN, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forEnum(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.ENUM, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forObject(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.OBJECT, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final ResponseField forList(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.LIST, responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final CustomTypeField forCustomType(String responseName, String fieldName, Map<String, ? extends Object> map, boolean optional, ScalarType scalarType, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            Intrinsics.checkParameterIsNotNull(scalarType, "scalarType");
            return companion.forCustomType(responseName, fieldName, map != null ? map : MapsKt.emptyMap(), optional, scalarType, list != null ? list : new ArrayList<>());
        }

        @JvmStatic
        public final ResponseField forFragment(String responseName, String fieldName, List<? extends Condition> list) {
            Intrinsics.checkParameterIsNotNull(responseName, "responseName");
            Intrinsics.checkParameterIsNotNull(fieldName, "fieldName");
            return new ResponseField(Type.FRAGMENT, responseName, fieldName, MapsKt.emptyMap(), false, list != null ? list : CollectionsKt.emptyList());
        }

        @JvmStatic
        public final boolean isArgumentValueVariableType(Map<String, ? extends Object> map) {
            Intrinsics.checkParameterIsNotNull(map, "objectMap");
            return map.containsKey(ResponseField.VARIABLE_IDENTIFIER_KEY) && Intrinsics.areEqual(map.get(ResponseField.VARIABLE_IDENTIFIER_KEY), ResponseField.VARIABLE_IDENTIFIER_VALUE) && map.containsKey(ResponseField.VARIABLE_NAME_KEY);
        }
    }
}
